home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Interactive Media Design Review 1999
/
Interactive Media Design Review 1999.iso
/
pc
/
Demos
/
Bombardier_PC
/
BSCRIPTS.CST
/
00075_Script_newQTVRMenu
< prev
next >
Wrap
Text File
|
1999-04-25
|
4KB
|
183 lines
-- ⌐ 1998 @radical.media, inc. & Concurrent New Media Group, L.L.C.
-- Developed for Bombardier, Inc.
--
-- All programming developed by:
-- Robert Fabricant, Valerie Valoueva, Ossi Shaked,
-- Henry Sauvageot, Chris Howell & Chris Girand
--
-- Use of this code by parties other than @radical.media, inc. or their
--agents
-- without the express written consent of @radical.media, inc. AND Concurrent
-- New Media Group, L.L.C. is strictly prohibited.
------------------------------------------------------
-------*This script is not used in this version of the movie*----------
property mySprite, NeutralName, RolloverName, HiliteName, selected,¼
linkedSprite, linkedNeutralName, linkedRolloverName, linkedHiliteName, frameRange,¼
lastFrame,
on new me
global selectedSprite
set mySprite = the spriteNum of me
set lastFrame = the frame
set NeutralName = getNeutralName(me, mySprite)
set RolloverName = NeutralName&"-r"
set HiliteName = NeutralName&"-hilt"
set linkedSprite = getLinkedSprite(me, NeutralName)
if linkedSprite <> 0 then
set linkedNeutralName = getNeutralName(me, linkedSprite)
set linkedRolloverName = linkedNeutralName&"-r"
set linkedHiliteName = linkedNeutralName&"-hilt"
end if
puppetsprite mySprite, true
puppetOnPlaneSprite me
if mySprite = selectedSprite then
set the member of sprite mySprite = member HiliteName
if linkedSprite <> 0 then
set the member of sprite linkedSprite = member linkedHiliteName
end if
set selected = true
else
set selected = false
end if
put NeutralName&&linkedNeutralName
set startFrame = the frame
set endFrame = marker(1)
set frameRange = [startFrame, endFrame]
set the visible of sprite mySprite = true
add the actorList, me
end
on getLinkedSprite me, NeutralName
if NeutralName <> "exterior" then
if NeutralName contains "Im" then
set value = mySprite + 1
else
set value = mySprite - 1
end if
else
set value = 0
end if
return value
end
on mouseEnter me
if not(selected) then
set the member of sprite mySprite = member RolloverName
if linkedSprite <> 0 then
set the member of sprite linkedSprite = member linkedRolloverName
end if
end if
end
on mouseLeave me
if not(selected) then
set the member of sprite mySprite = member NeutralName
if linkedSprite <> 0 then
set the member of sprite linkedSprite = member linkedNeutralName
end if
end if
end
on mouseUp me
global selectedSprite
if not(selected) then
sendAllSprites(#QTVRMenuDeselect)
set the member of sprite mySprite = member HiliteName
if linkedSprite <> 0 then
set the member of sprite linkedSprite = member linkedHiliteName
end if
set selected = true
set selectedSprite = mySprite
end if
pass
end
on qtvrPuppetOff me, theFrame
if getat(frameRange, 2) >= theFrame >= getat(frameRange, 1) then
nothing -- "inside the behaviour line, as loosely defined here"
else
puppetSprite mySprite, false
puppetOffPlaneSprite me
end if
end
on QTVRMenuDeselect me
if selected then
set selected = false
set the member of sprite mySprite = member NeutralName
if linkedSprite <> 0 then
set the member of sprite linkedSprite = member linkedNeutralName
end if
end if
end
on getNeutralName me,SpriteNum
set aMember = the member of sprite spriteNum
set Name = the name of member aMember
if Name contains "-" then
repeat with i = the Number of Chars of Name down to 1
if char i of Name <> "-" then
delete char i of Name
else
delete char i of Name
exit repeat
end if
end repeat
end if
return Name
end
on puppetOnPlaneSprite me
set planeSprite = getSpriteNumFromMemberName ("qtvr plane-neu")
puppetsprite planeSprite, true
set the member of sprite planeSprite = member "qtvr plane-neu"
set the visible of sprite planeSprite = true
end
on puppetOffPlaneSprite me
set planeSprite = getSpriteNumFromMemberName ("qtvr plane-neu")
puppetsprite planeSprite, false
end